package com.sophossystems.client.asmon.dao;

import com.sophossystems.client.asmon.dao.ServiciosDao;
import com.sophossystems.client.asmon.dto.ServiciosDTO;
import com.sophossystems.client.asmon.dto.ServiciosPkDTO;
import com.sophossystems.client.asmon.exceptions.DaoException;
import java.util.List;

public interface ServiciosDao
{
	
	public ServiciosPkDTO insert(final ServiciosDTO dto);
	
	public void update(final ServiciosDTO dto) throws DaoException;
	
	public void delete(final ServiciosPkDTO pk) throws DaoException;
	
	public ServiciosDTO findByPrimaryKey(ServiciosPkDTO pk) throws DaoException;
	
	public ServiciosDTO findByPrimaryKey(int pk) throws DaoException;
	/** 
	 * Returns all rows from the SERVICIOS table that match the criteria ''.
	 */
	public List<ServiciosDTO> findAll() throws DaoException;

	/** 
	 * Returns all rows from the SERVICIOS table that match the criteria 'idServicos = :idServicos'.
	 
	public List<ServiciosDTO> findWhereIdServicosEquals(int idServicos) throws DaoException;*/

	/** 
	 * Returns all rows from the SERVICIOS table that match the criteria 'idCliente = :idCliente'.
	 */
	public List<ServiciosDTO> findWhereIdClienteEquals(final int idCliente) throws DaoException;
	
	public ServiciosPkDTO findLastInsert() throws DaoException;
	
}
